import service from "@/request";
import { resInt } from "../type";
import { menuInt } from "./type";

/**
 * 根据登录用户名获取菜单
 * @param data 
 * @returns 
 */
export const getMenuApi=(data: string)=>service.get<any, resInt<menuInt[]>>(`/menu?username=${data}`)